package cn.net.isir.core.shiroFilter;

/**
 * @author liuxubo
 * @filename ShiroError.java
 * @package cn.net.isir.core.shiroFilter
 * @email lxb@isir.net.cn
 * @date 2018/11/26
 * @comment
 * @since 1.8
 */
public class ShiroError {

    /**
     * -----------login-------------
     */
    public static int LOGIN_SUCCESS_CODE = 1000;
    public static String LOGIN_SUCCESS_MESSAGE = "login success.";
    public static int NO_LOGIN_CODE = 1001;
    public static String NO_LOGIN_MESSAGE = "need login.";

    /**
     * ------------role-----------------
     */
    public static int HAS_ROLE_CODE = 2000;
    public static String HAS_ROLE_MESSAGE = "has role.";
    public static int NO_ROLE_CODE = 2001;
    public static String NO_ROLE_MESSAGE = "need role.";

    /**
     * ------------permission-----------------
     */
    public static int HAS_PERMISSION_CODE = 3000;
    public static String HAS_PERMISSION_MESSAGE = "has permission.";
    public static int NO_PERMISSION_CODE = 3001;
    public static String NO_PERMISSION_MESSAGE = "need permission.";

    /**
     * ------------rest-----------------
     */
    public static int REST_OK_CODE = 4000;
    public static String REST_OK_MESSAGE = "rest OK.";
    public static int REST_ERR_CODE = 4001;
    public static String REST_ERR_MESSAGE = "rest error.";
}
